package cn.aylog.controller;

import cn.aylog.pojo.Animal;
import org.springframework.web.bind.annotation.*;

@RestController
public class HelloController {

    @RequestMapping("/")
    public String hello() {
        System.out.println("Hello");
        return "Hello";
    }

    @RequestMapping("/animal")
    public Animal animal(Animal animal) {
        return animal;
    }

    @GetMapping("/a")
    public String aGet() {
        return "get";
    }

    @PostMapping("/a")
    public String aPost() {
        return "post";
    }

    @PutMapping("/a")
    public String aPut() {
        return "put";
    }

    @DeleteMapping("/a")
    public String aDelete() {
        return "delete";
    }
}
